import { createRouter, createWebHashHistory } from 'vue-router';
import { authRouterGuard } from './helpers';
import staticRoutes from './static-routes';

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...staticRoutes],
});

// 权限处理
router.beforeEach(authRouterGuard);

export default router;
